package com.zxp.snowy.test.param;

import vip.xiaonuo.core.pojo.base.param.BaseParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.NotBlank;
import java.util.*;
/**
 * simple请求参数类
 *
 * @author shollin
 * @date ${createDateString}
 */
@Data
@Schema(name = "Simple", description = "测试表")
public class SimpleParam extends BaseParam {
    /**
     * id
     */
    @Schema(description = "id")
    @NotNull(message = "id不能为空，请检查id参数", groups = {edit.class, delete.class, detail.class})
    private Integer id;
    /**
     * 姓名
     */
    @NotBlank(message = "姓名不能为空，请检查name参数", groups = {add.class, edit.class})
    private String name;
    /**
     * 年龄
     */
    @NotNull(message = "年龄不能为空，请检查age参数", groups = {add.class, edit.class})
    private Integer age;
    /**
     * 删除标识1
     */
    @NotNull(message = "删除标识1不能为空，请检查deleteFlag参数", groups = {add.class, edit.class})
    private Byte deleteFlag;
    /**
     * 删除标识2
     */
    @NotNull(message = "删除标识2不能为空，请检查deleted参数", groups = {add.class, edit.class})
    private Byte deleted;
    /**
     * 测试布尔类型
     */
    @NotNull(message = "测试布尔类型不能为空，请检查isOk参数", groups = {add.class, edit.class})
    private Byte isOk;
    /**
     * 版本
     */
    @NotNull(message = "版本不能为空，请检查version参数", groups = {add.class, edit.class})
    private Short version;
    /**
     * 创建时间
     */
    @NotNull(message = "创建时间不能为空，请检查createTime参数", groups = {add.class, edit.class})
    private Date createTime;
    /**
     * 更新时间
     */
    @NotNull(message = "更新时间不能为空，请检查updateTime参数", groups = {add.class, edit.class})
    private Date updateTime;

}

